<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
{% csrf_token %}
    <select name="tname">
        {% for i in s %}
            <option value="{{ i.id }}">{{ i.tname }}</option>
        {% endfor %}
    </select>
    <input type="submit" value="过滤">
</form>
</body>
</html>